package com.nhxcz.bigdataweb.service.serviceImpl;

import com.nhxcz.bigdataweb.entity.Count;
import com.nhxcz.bigdataweb.mapper.CountMapper;
import com.nhxcz.bigdataweb.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class CountService extends BaseService {
    @Autowired
    private CountMapper countMapper;

    public Count getLonLan(double longitude){
        return countMapper.getLon(longitude);
    }

    public ArrayList<Count> print()
    {
        return  countMapper.print();
    }

    public ArrayList<Count> top() { return countMapper.top();}

    public int bus() { return countMapper.bus();}

    public int car() { return countMapper.car();}

    public int walk() { return countMapper.walk();}

    public int train() { return countMapper.train();}

    public int bike() { return countMapper.bike();}

    public int traffic() { return countMapper.traffic();}

    public String time() { return countMapper.time();}
}
